java.lang.ObjectDeck
public class Deck
Deck models a deck of 52 Anglo-American playing cards.
| Constructor Summary | |
|---|---|
Deck()
Constructs a new, unshuffled deck containing 52 playing cards. |
|
| Method Summary | |
|---|---|
Card |
dealCard()
Removes a card from this deck. |
boolean |
isEmpty()
Determines if this deck is empty. |
void |
shuffle()
Shuffles this deck of cards. |
int |
size()
Returns the number of cards that are currently in the deck. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Deck()
| Method Detail |
|---|
public Card dealCard()
public boolean isEmpty()
public void shuffle()
public int size()